import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    sid: ''
  },
  getters: {},
  // mutations是唯一可以改变state的方法
  mutations: {
    setSid (store, val) {
      store.sid = val
    }
  },
  actions: {},
  modules: {}
})
